#include <iostream>
#include <string>

using namespace std;

int main()
{
    int a, b, c;
    string const NO = "No answer";
    while(cin >> a >> b >> c)
    {
        for (int i=10; i<=100; ++i)
        {
            if (i%3==a && i%5==b && i%7==c) cout << i << endl;
        }
        cout << NO << endl;
    }
    return 0;
}
